const utils = require("../utils")
const dbModel = require('../models/dbModel')
const gethomeData = async (ctx) => {
  try {
    const res = await dbModel.homeDataModel.find({})
    ctx.body = utils.assembleData(res[0]);
  } catch (error) {
    ctx.body = error;
  }
}
const getauthdata = async (ctx) => {
  try {
    const res = await dbModel.authDataModel.find({})
    ctx.body = utils.assembleData(res[0]);
  } catch (error) {
    ctx.body = error;
  }
}
module.exports = {
  gethomeData,
  getauthdata,
}